#include <CommandCamera.h>
Public Member Functions | |
| CommandCamera (RightView *rightview, OSGWindows *osgwind) | |
| ~CommandCamera () | |
| void | ManipulateCamera () |
| void | YawLeft () |
| void | YawRight () |
| void | PitchUp () |
| void | PitchDown () |
| void | ZoomIn () |
| void | ZoomOut () |
| void | TopView () |
| void | ThreedView () |
| void | SideView () |
| void | MoveLeft () |
| void | MoveRight () |
| void | MoveUp () |
| void | MoveDown () |
Static Public Attributes | |
| static float | m_dCoordx |
| static float | m_dCoordy |
| static float | m_dCoordz |
| static float | m_dHeading |
| static float | m_dPitchValue |
| static float | m_dRotation |
| static Views | viewKind |
Protected Attributes | |
| RightView * | rightview_ |
| OSGWindows * | osgwind_ |
Definition at line 13 of file CommandCamera.h.
|
||||||||||||
|
CommandCamera constructor. This class can reach the camera of the rightview and viewer of the OsgWindows, since it will change the positions and angles of the camera of rightview and matrix of the viewer of the OsgWindows. The constuctor sets the rightview and osgwind parameters to the private variables of the class. Definition at line 8 of file CommandCamera.cpp. References osgwind, osgwind_, and rightview_. |
|
|
CommandCamera destructor. Definition at line 14 of file CommandCamera.cpp. |
|
|
Manipulate Camera() function takes the corresponding values of PitchValue, Heading, coordinates of the camera, rotation angle and translation value and makes the operations to make the camera matrix ready. Then it sets this matrix to the viewer of the osgwindows. Definition at line 19 of file CommandCamera.cpp. References RightView::cameraRotation, RightView::cameraTrans, OSGWindows::getViewer(), m_dCoordx, m_dCoordy, m_dCoordz, m_dHeading, m_dPitchValue, m_dRotation, RightView::myCameraMatrix, osgwind_, and rightview_. Referenced by MoveDown(), MoveLeft(), MoveRight(), MoveUp(), PitchDown(), PitchUp(), SideView(), ThreedView(), TopView(), YawLeft(), YawRight(), ZoomIn(), and ZoomOut(). |
|
|
MoveDownfunction. For 3D and side views, this function makes the camera move up for 10 units by the callback from the up key of the keyboard. For Top view, the camera moves in the scene without changing its height. Definition at line 180 of file CommandCamera.cpp. References m_dCoordy, m_dCoordz, ManipulateCamera(), TOPVIEW, and viewKind. Referenced by RightView::OnCameraPitchdown(). |
|
|
MoveLeft function. This function makes the camera of the rightview move to the left by the callback from the right key of the keyboard. Definition at line 157 of file CommandCamera.cpp. References m_dCoordx, and ManipulateCamera(). Referenced by RightView::OnCameraYawleft(). |
|
|
MoveRight function. This function makes the camera of the rightview move to the right by the callback from the right key of the keyboard. Definition at line 163 of file CommandCamera.cpp. References m_dCoordx, and ManipulateCamera(). Referenced by RightView::OnCameraYawright(). |
|
|
MoveUp function. For 3D and side views, this function makes the camera move up for 10 units by the callback from the up key of the keyboard. For Top view, the camera moves in the scene without changing its height. Definition at line 169 of file CommandCamera.cpp. References m_dCoordy, m_dCoordz, ManipulateCamera(), TOPVIEW, and viewKind. Referenced by RightView::OnCameraPitchup(). |
|
|
Pitch Down function. Makes the camera of the rightview pitch down for 10 degrees for each callback from the menu. Definition at line 71 of file CommandCamera.cpp. References m_dPitchValue, m_dRotation, ManipulateCamera(), THREEDVIEW, and viewKind. |
|
|
Pitch Up function. Makes the camera of the rightview pitch up for 10 degrees for each callback from the menu. Definition at line 59 of file CommandCamera.cpp. References m_dPitchValue, m_dRotation, ManipulateCamera(), THREEDVIEW, and viewKind. |
|
|
ThreedView function. Makes the camera of the rightview look from the side view by the callback from the button in the toolbox. The pitch up value is 0 degrees. Definition at line 142 of file CommandCamera.cpp. References m_dCoordx, m_dCoordy, m_dCoordz, m_dHeading, m_dPitchValue, m_dRotation, ManipulateCamera(), SIDEVIEW, and viewKind. |
|
|
ThreedView function. Makes the camera of the rightview look from the 3D view by the callback from the button in the toolbox. The pitch up value is -25 degrees. Definition at line 128 of file CommandCamera.cpp. References m_dCoordx, m_dCoordy, m_dCoordz, m_dHeading, m_dPitchValue, m_dRotation, ManipulateCamera(), THREEDVIEW, and viewKind. |
|
|
TopView function. Makes the camera of the rightview look from the top view by the callback from the button in the toolbox. The pitch up value is -90 degrees. Definition at line 115 of file CommandCamera.cpp. References m_dCoordx, m_dCoordy, m_dCoordz, m_dHeading, m_dPitchValue, m_dRotation, ManipulateCamera(), TOPVIEW, and viewKind. |
|
|
Yaw Left function. Makes the camera of the rightview turn left for 10 dgrees for each callback from the menu Definition at line 34 of file CommandCamera.cpp. References m_dHeading, m_dRotation, ManipulateCamera(), THREEDVIEW, and viewKind. |
|
|
Yaw Right function. Makes the camera of the rightview turn right for 10 degrees for each callback from the menu Definition at line 48 of file CommandCamera.cpp. References m_dHeading, m_dRotation, ManipulateCamera(), THREEDVIEW, and viewKind. |
|
|
Zoom In function. Makes the camera of the rightview zoom in to the scene. For 3D and side views camera goes into the scene, for top view gets closer into the scene. Definition at line 83 of file CommandCamera.cpp. References m_dCoordx, m_dCoordy, m_dCoordz, m_dHeading, m_dRotation, ManipulateCamera(), PI, TOPVIEW, and viewKind. Referenced by RightView::OnCameraZoomin(). |
|
|
Zoom Out function. Makes the camera of the rightview zoom out from the scene. For 3D and side views camera goes back from scene, for top view gets farther from the scene. Definition at line 99 of file CommandCamera.cpp. References m_dCoordx, m_dCoordy, m_dCoordz, m_dHeading, m_dRotation, ManipulateCamera(), PI, TOPVIEW, and viewKind. Referenced by RightView::OnCameraZoomout(). |
|
|
x coordiante of the camera Definition at line 23 of file CommandCamera.h. Referenced by ManipulateCamera(), MoveLeft(), MoveRight(), SideView(), ThreedView(), TopView(), ZoomIn(), and ZoomOut(). |
|
|
y coordiante of the camera Definition at line 28 of file CommandCamera.h. Referenced by ManipulateCamera(), MoveDown(), MoveUp(), SideView(), ThreedView(), TopView(), ZoomIn(), and ZoomOut(). |
|
|
z coordiante of the camera Definition at line 33 of file CommandCamera.h. Referenced by ManipulateCamera(), MoveDown(), MoveUp(), SideView(), ThreedView(), TopView(), ZoomIn(), and ZoomOut(). |
|
|
heading value of the camera ( camera looks left or right ) Definition at line 38 of file CommandCamera.h. Referenced by ManipulateCamera(), SideView(), ThreedView(), TopView(), YawLeft(), YawRight(), ZoomIn(), and ZoomOut(). |
|
|
pitch value of the camera ( camera looks up or down ) Definition at line 43 of file CommandCamera.h. Referenced by ManipulateCamera(), PitchDown(), PitchUp(), SideView(), ThreedView(), and TopView(). |
|
|
rotation value of the camera Definition at line 48 of file CommandCamera.h. Referenced by ManipulateCamera(), PitchDown(), PitchUp(), SideView(), ThreedView(), TopView(), YawLeft(), YawRight(), ZoomIn(), and ZoomOut(). |
|
|
Definition at line 17 of file CommandCamera.h. Referenced by CommandCamera(), and ManipulateCamera(). |
|
|
Definition at line 16 of file CommandCamera.h. Referenced by CommandCamera(), and ManipulateCamera(). |
|
|
A struct variable for determining the view ofthe camera; top, side or 3D view Definition at line 53 of file CommandCamera.h. Referenced by MoveDown(), MoveUp(), PitchDown(), PitchUp(), SideView(), ThreedView(), TopView(), YawLeft(), YawRight(), ZoomIn(), and ZoomOut(). |
1.4.6-NO